<html>
	<head>
		<title></title>
	</head>
	<body>
		<?php
			include 'dao.php';
			
			$userPeer = new UserPeer;
			$entryPeer = new EntryPeer;
	//		
	//		if($userPeer->addUser('Gelo','gelodb','cms')){
	//			echo "User added";
	//		}else{
	//			echo "Error in adding user!";
	//		}
	
	//		$userPeer->checkPassword("Admin","Secret Password");
	
	//		$userPeer->modifyUser("Admin","Secret Password","Ben");
	
	//		if($userPeer->isExistingUser("Admin")==false){
	//			echo "wala";
	//		}else{
	//			echo "yerah";
	//		}
	
	//		$userPeer->setActive("asd");	
	//		$allUsers = $userPeer->retrieveAllUsers();

	//		for($i=0;$i<count($allUsers);$i++){	
	//			echo $allUsers[$i]->getId()." --- ";
	//			echo $allUsers[$i]->getName()." --- ";
	//			echo $allUsers[$i]->getUsername()." --- ";
	//			echo $allUsers[$i]->getPassword()." --- ";
	//			echo $allUsers[$i]->getActivated()." --- ";
	//			echo $allUsers[$i]->getIs_Admin()."<br />";
	//		}
	
	
			//mysql format: 'YYYY-MM-DD HH:MM:SS'
			echo date("Y-m-d H:i:s");
			if($entryPeer->addEntry(date("Y-m-d H:i:s"),'OK lang','','gelo','pending')){
				echo "Entry added";
			}else{
				echo "Error in adding user!";
			}
		
		?>		
	</body>

</html>